Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added /blocks and /block-height API method #1110

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cpuchainorg
Copy link

@cpuchainorg cpuchainorg commented Jul 6, 2024

Closes #1094

Useful to draw statistics from blockbook endpoint without requiring any additional databases or backends.

Also this PR allows to parse queryString for /block method to reduce amount of transactions that could be returned ( which saves CPU resources and additional time to load resource )

Example for the new API:

https://blockbook.cpuchain.org/api/v2/blocks
https://blockbook.cpuchain.org/api/v2/block-height

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block API without transaction details
1 participant